package com.ram.app.service;

import com.baomidou.mybatisplus.service.IService;
import com.ram.common.entity.RamUser;
import com.ram.common.entity.wrapper.UserWrapper;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author fudongjing
 * @since 2018-07-08
 */
public interface RamUserService extends IService<RamUser> {
    /**
     * 根据用户名查找用户信息
     * @param username
     * @return
     * @throws Exception
     */
    UserWrapper  getUserByName(String username) throws  Exception;

    /**
     * 用户注册
     * @param user
     * @return
     * @throws Exception
     */
    Boolean registerUser(RamUser user)throws  Exception;

    /**
     * 电话号码验证
     * @param phoneNum
     * @return
     * @throws Exception
     */
    Boolean valitedPhone(String phoneNum) throws  Exception;

}
